show diagnostics

show diagnostics {slot [slot_number]} {boot-time}

Description

Displays the status of the last diagnostic test run on the switch.

Syntax Description

slot Specifies which node to display diagnostic status information on.
slot_number Specifies the slot number of the node on which you need to run the diagnostics. Values can be from 1 to 8.
boot-time Specifies the results of the hardware checks performed at the boot time of the switch or each slot in a stack.

Default

N/A.

Usage Guidelines

Use this command to display information from the last diagnostic test run on the switch.

To run diagnostics on a switch in a stack, you need to remove the node from the stacking mode, restart the node, and then run the diagnostics locally on the node. You can see the latest diagnostics results from the Master node of a stack after the node has rejoined the stack.

Output

The switch displays the following diagnostic information:

If you have run diagnostics, information includes the:
  • Date the test was run—The month, date, and year.
  • Last Test Version—The ExtremeXOS version associated with the results.
  • Test data—If the diagnostic test failed, the switch displays the name of the failed test. The switch displays a message similar to the following:MAC memory test failed
  • Summary—A brief summary of the overall diagnostic test. Options are:
    • Diagnostics Pass—The diagnostic test has passed.
    • Diagnostics Fail—One or more diagnostic tests have failed.

If you have never run diagnostics on the switch or stack ports, the switch displays a message similar to the following:

Result: FAIL
Test date run is invalid. Please run Diagnostics.
Error reading diagnostics information.

This message is normal and expected if you have never run diagnostics on the switch. After you run diagnostics, you should see information about the executed test.

Running Diagnostics

To run diagnostics, use the following command:

run diagnostics [extended | normal | stack-port]

Depending on the software version running on your switch or your switch model, additional or different diagnostic information might be displayed. For more information, see the command run diagnostics .

Example

The following command displays the results of the switch diagnostics:

show diagnostics

The following is sample output from this command:

Last Test Date: May-04-2006
Last Test Version: 12.3.0.1
Summary: Diagnostics Pass

When the version is unknown, Last Test Version reads “Unknown.”

The following example displays the results of boot-time diagnostics on a standalone switch:

# show diagnostics boot-time 
 
Switch: 5520-48T-ACDC
Time:   Thu May 23 18:47:34 2024
 
Component             Result  Details
====================  ======  =================================================
CPU                   PASS                                                      
Memory                PASS                                                      
Storage               PASS                                                      
Power                 FAIL    PSU-1: Powered On, PSU-2: Power Failed                   
Mgmt interface        PASS    Mgmt interface present, Link Up                   

The following example displays the results of boot-time diagnostics on a specific stack slot:

# show diagnostics slot 2 boot-time 
 
Slot-2: 5520-48SE-ACDC
Time:   Thu May 23 19:04:11 2024
 
Component             Result  Details
====================  ======  =================================================
CPU                   PASS                                                      
Memory                PASS                                                      
Storage               PASS                                                      
Power                 PASS    PSU-1: Powered On, PSU-2: Empty                   
Mgmt interface        PASS    Mgmt interface present, Link Up                   

History

This command was available in ExtremeXOS 10.1.

The boot-time option was added in version 33.1.1.

Platform Availability

This command is available on all Universal switches supported in this document.